@echo off

echo deploy start...

rem enter the root directory.
cd /d "%~dp0.."

echo publishing package...
cmd /c npm publish || goto :error

echo deploy successful.
exit 0

:error
echo deploy failed.
exit 1
